<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%
String path = request.getContextPath(); String basePath =
request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fun" %>
<!DOCTYPE html>
<!--[if IE 7]><html class="ie7 lt-ie10"><![endif]-->
<!--[if IE 8]><html class="ie8 lt-ie10"><![endif]-->
<!--[if IE 9]><html class="ie9 lt-ie10"><![endif]-->
<!--[if gt IE 9]><!-->
<html>
<!--<![endif]-->
<head>
<meta charset="utf-8" />
<title>上衣_美丽说</title>
<base href="<%=basePath%>">
<meta name="description"
	content="美丽说，专注时尚新款发布。海量新款每日上新，每周五新款大促火热进行中！旗下海淘品牌“HIGO”挑选全球时尚好货，满足你全方位的时尚购物体验！" />
<meta name="keywords" content="美丽说,higo,衣服,鞋子,包包,配饰,家居,美妆,搭配,团购,美丽说higo" />
<meta http-equiv="x-ua-compatible" content="IE=edge,chrome=1" />
<link rel="stylesheet" type="text/css"
	href="pc/css/base.css?1607171726.25" />
<link rel="icon"
	href="pic/_o/75/6e/2f6871f198c0bd7615ffbf9a2f5f_49_48.c5.png"
	type="image/x-icon" />
<link rel="stylesheet" type="text/css"
	href="pc/css/page/search/catalog.css?1607171726.25" />
<link rel="stylesheet" type="text/css"
	href="pc/css/page/search/filter.css?1607171726.25" />
<script type="text/javascript" src="pc/jsmin/fml.js?1"></script>
<style type="text/css">
.fav b {
    background-image: url('img/upload_ifqwkntcmi2gintdg4zdambqgyyde_221x704.png');
    background-position: -10px -114px;
    background-repeat: no-repeat;
    overflow: hidden;
    display: block;
    position: relative;
    top: 1px;
    width: 15px;
    height: 13px;
    display: inline-block;
</style>
<script>
	fml.setOptions({
		'sversion' : '1607171726.25',
		'defer' : true,
		'modulebase' : 'pc/jsmin/'
	});
	var Meilishuo = {
		"config" : {
			"nt" : "1yQyN1tU7ssTVQ5GeZ16wzlv30ry2qIxWwb+91mpkPC4hsL6NGU0ABUAE2gyVhY2",
			"main_site_domain" : "/",
			"server_url" : "/",
			"picture_url" : "http://i.meilishuo.net/css/",
			"captcha_url" : "http://captcha.meilishuo.com/",
			"im_url" : "http://imlab.meilishuo.com/",
			"forSale" : false,
			"controller" : "catalog",
			"isLogin" : true,
			"userInfo" : {
				"name" : "阿猫来了",
				"uid" : "11cnkktq",
				"avatar" : "new1/v1/bdefaultavatar/03.jpg"
			}
		}
	};
</script>

</head>
<body>
	<jsp:include page="common/header.jsp"></jsp:include>
	<div class="wrap">
		<div class="userContain" data-link="/search/catalog/10057049">
			<div class="choice">
				<a href="/search/catalog/10057049?action=clothing">所有分类 >&nbsp;</a>
				<div class="userchoiceWrap"></div>
				<p>找到${fun:length(pageInfo.list)}件相关结果</p>
			</div>
			<!-- 分类 -->
			<div class="styleWrap">
				
			</div>
			<!-- 排序 -->
			<div class="orderWrap">
				<!-- 流行 热销 上新 价格 -->
				<script>
					function lx(is,seach){
						var url="/goods/solr?is="+is;
						//var seach="${requestScope.seach}";
						var typeid="${requestScope.goodstypeid}";
						if(seach!=null && seach!=""){
							url+="&seach="+seach;
						}
						if(typeid!=null || typeid!=""){
							url+="&goodstypeid="+typeid;
						}
						location.href=url;
					}
				</script>
				<div class="orderInfo" data-checkedSort="pop">
					<a class="fashion  on borderright  right" onclick="lx(1,'${select}');" href="javascript:void();" data-sort="pop">流行</a> <a
						class="fashion both " onclick="lx(2,'${select}');" href="javascript:void();"  data-sort="sell" >热销</a> <a
						class="fashion both " onclick="lx(3,'${select}');" href="javascript:void();"  data-sort="new">上新</a> <a
						class="fashion price left "> <span class="priceCon">价格</span><span
						class="priceArrow"></span>
						<ul class="priceDesc">
							<li class="down" onclick="jg(1,'${select }');" data-sort="price_desc">价格从高到低</li>
							<li class="up" onclick="jg(2,'${select }');" data-sort="price_asc">价格从低到高</li>
						</ul>
					</a>
					
					<script>
					function jg(flag,seach){
						var url="/goods/solr?flag="+flag;
						//var seach="${requestScope.seach}";
						var typeid="${requestScope.goodstypeid}";
						if(seach!=null || seach!=""){
							url+="&seach="+seach;
						}
						if(typeid!=null || typeid!=""){
							url+="&goodstypeid="+typeid;
						}
						location.href=url;
					}
				</script>
				</div>
				<!-- 价格部分 -->
				<%-- <input type="hidden" name="typeid" value="${goodstypeid}"> --%>
				<form id="pricefrm" method="post">
				<div class="priceWrap">
					<!-- <form> -->
					<input class="minPrice" id="minPrice" name="minPrice" type="text" placeholder="￥" value="${minPrice}">
					<span>~</span> <input id="maxPrice" class="maxPrice" name="maxPrice" type="text" placeholder="￥"
						value="${maxPrice}">
					<!-- </form> -->
					<a onclick="price('${select }');" href="javascript:void();">确认</a>
				</div>
				</form>
				<!-- 金币抵现、 店铺优惠 -->
				<!-- <div class="checkBoxWrap">			<div class="checkInfo">				<span></span>				金币抵现			</div>			<!-- <input type="checkbox"> -->
				<!-- </div> -->
			</div>
			
			<script type="text/javascript">
				function price(seach){
					var minPrice=$("#minPrice").val();
					var maxPrice=$("#maxPrice").val();
					var typeid="${requestScope.goodstypeid}";
					//var seach="${requestScope.seach}"
					var url="/goods/solr?minPrice="+minPrice+"&maxPrice="+maxPrice;
					if(typeid!=null&&typeid!=""){
						url+="&goodstypeid="+goodstypeid;
					}
					if(seach!=null&&seach!=""){
						url+="&seach="+seach;
					}
					location.href=url;
				}
			</script>
			<div class="product">
				<c:if test="${empty pageInfo.list }">
				<p style="font-size:18px;text-align:center;">没有搜索到相关商品！</p>
				</c:if>
				<ul class="clearfix product-ul" id="product-ul">
				<c:forEach var="ls" items="${pageInfo.list}">
					<li class="product-list fl">
						<div class="img-size">
							<a class="img-link" target="_blank" 
								href="/goods/showGoodInfo?goodsId=${ls.goodsid}"
								style="background: url(${ls.goodsthums}) no-repeat center center; background-size: cover;"></a>
						</div>
						<div class="product-info clearfix">
							<div class="price fl">
								<em class="price-u">¥</em><span class="price-n">${ls.saleprice}</span>
							</div>
							<div class="fav fr">
								<b id="collect" onclick="collect(this,${ls.goodsid });" class="fav-i"></b> <span class="fav-n">${ls.collectnum}</span>
							</div>
						</div>
						<div></div>
						<div class="product-logo">
							<img
								src="b7/avatar/160520/1y0mpt_ie4tqodbgrrdcnlbhazdambqgqyde_50x54.jpg">
						</div> <a class="text-link"  target="_blank"
						href="/goods/showGoodInfo?goodsId=${ls.goodsid}">
							${ls.goddstitle}</a>
					</li>
					</c:forEach>
					<script type="text/javascript">
						function collect(em,goodsid){
							$.ajax({
				    	        cache:true,
				    	        type: "POST",
				    	        url:'/browfav/selectByExample?goodsId='+goodsid,
				    	        data:"",// 你的formid
				    	        dateType:"json",
				    	        async: false,
				    	        error: function(data) {
				    	            alert("Connection error");
				    	        },
				    	        success:function(data) {
			    	        		if(data.results){
			    	        			if($(em).attr("class")=="fav-i"){
			    	        				$(em).removeClass(data.remclass).addClass(data.addclass);
			    	        			}else{
			    	        				$(em).removeClass(data.remclass).addClass(data.addclass);
			    	        			}
			    	        			
			    	        			$(em).next(".fav-n").html(data.num);
			        	        		return;
			    	        		}else{
			    	        			alert('请先登录');
			        	        		return;
			    	        		}
				    	        }
				    	    });
						}
					</script>
				</ul>
			</div>
			<!-- 登录用户显示搜索结果数目 -->
			<!-- <div class="forSignIn">		<p>您好 <span class="redFont">打捞星星的少年</span>，“衬衣” 相关的宝贝：</p>		<p class="verticalLine" style="padding-left:0;">购买过店铺找到 <span class="redFont">128</span> 件</p>		<p class="verticalLine">收藏过店铺找到 <span class="redFont">9</span> 件</p>		<p class="verticalLine">V4买家店铺找到 <span class="redFont">900</span> 件</p>		<p style="padding-left:11px;">回头客爱买店铺找到 <span class="redFont">900</span> 件</p>	</div> -->
		</div>
		<!-- <div id="pagination" class="pagination"></div> -->
		<c:if test="${!empty pageInfo.list }">
		<!--翻页-->
		<form name="frm" action="/goods/selectByIs">
			<input name="currPageNo" type="hidden" value="${pageInfo.pageNum }"/>
			<input name="pageCount" type="hidden" value="${pageInfo.pages}"/>
			<input name="typeid" type="hidden" value="${typeid}"/>
			<input name="select" type="hidden" value="${select}"/>
			<div class="pageNav">
				<a class="pagePrev " <c:if test="${pageInfo.pageNum==1}"> style="display: none !important"</c:if> href="javascript:doBefore();">&lt;上一页</a>
				<c:forEach varStatus="status" begin="1" end="${pageInfo.pages}">
				<a <c:if test="${status.count==pageInfo.pageNum }">class="currentpage"</c:if> href="javascript:doPer(${status.count});">${status.count}</a>
				</c:forEach>
				<a class="pageNext" href="javascript:doNext();">下一页&gt;</a>
			</div>
		</form>
		</c:if>
		<script type="text/html" id="posterWall"> <? var data = this.v; ?> <div class="goodsWrap"> 	<div class="goodsContainer">	 	<a class="goodsImg" href="<?= data.link ?>" target="_blank" style="padding-bottom: <?= data.show.h / data.show.w * 100 ?>%;background:url('<?= data.show.img ?>') no-repeat center center;">	 		<!-- <img src="<?= data.show.img ?>" > -->	 	</a>			<? if(data.lefttop_taglist.length >0){ ?>				<div class="brandIcon">	 			<img src="<?= data.lefttop_taglist[0].img ?>">	 		</div>	 	<?}?>	 </div> 	<div class="priceWrap"> 		<div class="price">￥<?= data.price ?></div> 		<div class="shoucang"><span class="shoucangIcon"></span> 		<? if(data.cfav==null){ ?>				0	 	<?}else{?>	 		<?= data.cfav ?>	 	<?}?> 		</div> 	</div> 	<a class="goodsTitle" href="<?= data.link ?>"><?= data.title ?></a> </div></script>
	</div>
	<script>
		fml.vars.ppath = JSON.stringify();
	</script>
	<script type="text/javascript">
	function doFirst(){
		frm.currPageNo.value=1;
		frm.submit();
	}
	function doNext(){
		if(frm.currPageNo.value>=frm.pageCount.value){
			layer.msg('已经是最后一页了!',{icon:2,time:1000});
			//alert('已经是最后一页了!');
			return;
		}
		frm.currPageNo.value=parseInt(frm.currPageNo.value)+1;
		frm.submit();
	}
	function doBefore(){
		if(frm.currPageNo.value<=1){
			layer.msg('已经是第一页了!',{icon:2,time:1000});
			//alert('已经是最后一页了!');
			return;
		}
		frm.currPageNo.value=parseInt(frm.currPageNo.value)-1;
		frm.submit();
	}
	function doLast(){
		frm.currPageNo.value=frm.pageCount.value;
		frm.submit();
	}
	function doPer(index){
		frm.currPageNo.value=index;
		frm.submit();
	}
</script>
	<jsp:include page="common/footer.jsp"></jsp:include>
	<jsp:include page="common/right.jsp"></jsp:include>
</body>
</html>